import fetch from 'common/src/utils/fetch'

let api = {
    // 课题来源 查询列表
    getSourceList(data) {
        return fetch({
            url: '/api/designservice/settingSubjectSource/queryByPage',
            method: 'post',
            headers: {
                'Content-Type': 'application/json'
            },
            data
        })
    },
    // 课题来源 查询详情
    getSourceDetail(data) {
        return fetch({
            url: '/api/designservice/settingSubjectSource/queryDetail',
            method: 'post',
            headers: {
                'Content-Type': 'application/json'
            },
            data
        })
    },
    // 课题来源 新增
    sourceInsert(data) {
        return fetch({
            url: '/api/designservice/settingSubjectSource/insert',
            method: 'post',
            headers: {
                'Content-Type': 'application/json'
            },
            data
        })
    },
    // 课题来源 修改
    sourceUpdate(data) {
        return fetch({
            url: '/api/designservice/settingSubjectSource/update',
            method: 'put',
            headers: {
                'Content-Type': 'application/json'
            },
            data
        })
    },
    // 课题来源 删除
    sourceDelete(data) {
        return fetch({
            url: '/api/designservice/settingSubjectSource/delete',
            method: 'delete',
            headers: {
                'Content-Type': 'application/json'
            },
            data
        })
    },
    // 课题性质 查询列表
    getNatureList(data) {
        return fetch({
            url: '/api/designservice/settingSubjectProperties/queryByPage',
            method: 'post',
            headers: {
                'Content-Type': 'application/json'
            },
            data
        })
    },
    // 课题性质 查询详情
    getNatureDetail(data) {
        return fetch({
            url: '/api/designservice/settingSubjectProperties/queryDetail',
            method: 'post',
            headers: {
                'Content-Type': 'application/json'
            },
            data
        })
    },
    // 课题性质 新增
    natureInsert(data) {
        return fetch({
            url: '/api/designservice/settingSubjectProperties/insert',
            method: 'post',
            headers: {
                'Content-Type': 'application/json'
            },
            data
        })
    },
    // 课题性质 修改
    natureUpdate(data) {
        return fetch({
            url: '/api/designservice/settingSubjectProperties/update',
            method: 'put',
            headers: {
                'Content-Type': 'application/json'
            },
            data
        })
    },
    // 课题性质 删除
    natureDelete(data) {
        return fetch({
            url: '/api/designservice/settingSubjectProperties/delete',
            method: 'delete',
            headers: {
                'Content-Type': 'application/json'
            },
            data
        })
    },
    // 社会实践情况 查询列表
    getPracticeList(data) {
        return fetch({
            url: '/api/designservice/settingSubjectSociaPractice/queryByPage',
            method: 'post',
            headers: {
                'Content-Type': 'application/json'
            },
            data
        })
    },
    // 社会实践情况 查询详情
    getPracticeDetail(data) {
        return fetch({
            url: '/api/designservice/settingSubjectSociaPractice/queryDetail',
            method: 'post',
            headers: {
                'Content-Type': 'application/json'
            },
            data
        })
    },
    // 社会实践情况 新增
    practiceInsert(data) {
        return fetch({
            url: '/api/designservice/settingSubjectSociaPractice/insert',
            method: 'post',
            headers: {
                'Content-Type': 'application/json'
            },
            data
        })
    },
    // 社会实践情况 修改
    practiceUpdate(data) {
        return fetch({
            url: '/api/designservice/settingSubjectSociaPractice/update',
            method: 'put',
            headers: {
                'Content-Type': 'application/json'
            },
            data
        })
    },
    // 社会实践情况 删除
    practiceDelete(data) {
        return fetch({
            url: '/api/designservice/settingSubjectSociaPractice/delete',
            method: 'delete',
            headers: {
                'Content-Type': 'application/json'
            },
            data
        })
    }
}

export default api
